/*
public class Main {
    public static void main(String[] args) {
        char ch1 ='山';
        char ch2 ='西';
        int pos1 =(int)ch1;
        int pos2 =(int)ch2;
        System.out.println("第一个字的位置是"+ pos1);
        System.out.println("第二个字的位置是"+ pos2);
        System.out.println();

    }
}*/
/*
public class Main {
    public static void main(String[] args) {
        byte c = 33;
        int  n = 130;
        float f= 123456.6789f;
        double d=123456789.123456789;
        System.out.println("c= "+c);
        System.out.println("n= "+n);
        System.out.printf("f= % -30.12f\n",f);
        System.out.printf("d= % -30.12f\n",d);
        c=(byte) n;
        f=(float) d;
        System.out.printf("c=%d\n",c);
        System.out.printf("f=%-30.12f",f);
    }
}
*/
/*
import java.util.Scanner;
 public class Main {
    public static void main(String[] args) {
       System.out.println("用空格或回车做分隔,输入若干数\n"+"最后输入数字1,回车结束输入操作");
        Scanner reader = new Scanner(System.in);
        double sum = 0;
        double x= reader.nextDouble();
        while (x!=1){
            sum=sum-x;
            x=reader.nextDouble();
            }
        System.out.printf("b=%10.5f\n",sum);
        }
 }
*/
/*
public class Main {
    public static void main(String[] args) {
        int a[] = {1, 2, 3, 4};
        int b[] = {100, 200, 300};
        System.out.println("数组a的元素个数=" + a.length);
        System.out.println("数组b的元素个数=" + b.length);
        System.out.println("数组a的引用(带前缀信息)" + a);
        System.out.println("数组b的引用(带前缀信息)" + b);
        System.out.println(a == b);
        int address = System.identityHashCode(a);
        System.out.printf("数组a的引用%x\n", address);
        address = System.identityHashCode(b);
        System.out.printf("数组b的引用%x\n", address);
        System.out.println("将b的值赋值给a");
        a = b;
        address = System.identityHashCode(a);
        System.out.printf("数组a的引用%x\n", address);
        address = System.identityHashCode(b);
        System.out.printf("数组b的引用%x\n", address);
    }
}
*/
/*
public class Main {
    public static void main(String[] args) {
        char ch1 ='你';
        char ch2 ='我';
        char ch3 ='他';
        int pos1 =(int)ch1;
        int pos2 =(int)ch2;
        int pos3 =(int)ch3;
        System.out.println("你的位置是"+ pos1);
        System.out.println("我的位置是"+ pos2);
        System.out.println("他的位置是"+ pos3);
        System.out.println();

    }
}*/
/*
public class Main {
    public  static void main(String args[]){
        char a = 'a',b = 'w';
        System.out.print("全部的希腊字母:");
        for(int i = (int)a; i<(int)b + 1; i++){
            System.out.print((char) i+"");
        }
    }
}
*/